package com.example.softwareconfigurationcoursedesign;

public class Product {

    public String pid;
    public String pname;
    public double pprice;
    public String ptag;
    public String purl;
    public int id;
    public String detail;

    public Product(String pid, String pname, double pprice, String ptag, String purl, int id, String detail) {
        this.pid = pid;
        this.pname = pname;
        this.pprice = pprice;
        this.ptag = ptag;
        this.purl = purl;
        this.id = id;
        this.detail = detail;
    }

    // 省略了getter和setter方法，需要根据需要进行添加
    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    // getter和setter方法
    public String getPurl() {
        System.err.println(purl);
        return purl;
    }

    public void setPurl(String purl) {
        this.purl = purl;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getPprice() {
        return pprice;
    }

    public void setPprice(double pprice) {
        this.pprice = pprice;
    }

    public String getPtag() {
        return ptag;
    }

    public void setPtag(String ptag) {
        this.ptag = ptag;
    }

}
